package manager
{
	import view.monster.AMonster;
	import view.monster.BMonster;
	import view.monster.CMonster;

	public class MonsterName
	{
		public static const A_MONSTER:String = "A";
		
		public static const B_MONSTER:String = "B";
		
		public static const C_MONSTER:String = "C";
		
		public static function getMonsterCls(_name:String):Class{
			var cls:Class;
			switch(_name){
				case A_MONSTER:
					cls = AMonster;
					break;
				case B_MONSTER:
					cls = BMonster;
					break;
				case C_MONSTER:
					cls = CMonster;
					break;
			}
			if(!cls)throw new Error("Not find this type monster!");
			return cls;
		}
	}
}